package com.jeejam.product.dao;

import java.util.List;
import java.util.Map;

import com.jeejam.framework.base.dao.BaseMapper;
import com.jeejam.product.pojo.ProductArticle;

public interface ProductArticleMapper extends BaseMapper{
	
	public int countsByUserId(int userId);
	
	public int countsForNew();
	
	public int countsForHot();
	
	public int countsForRecommend();
	
	public List<ProductArticle> selectForUserId(Map<String, Object> params);
	
	public List<ProductArticle> selectAllForNew(Map<String, Object> params);
	
	public List<ProductArticle> selectAllForHot(Map<String, Object> params);
	
	public List<ProductArticle> selectAllForRecommend(Map<String, Object> params);
	
	public int selectVotes(int id);

	public void updateViews(int id);
	
	public void updateVotes(Map<String, Object> params);

	public void recommend(int id);
	
	public void cancelRecommend(int id);
	
	public void trash(int id);
	
	public void restore(int id);
	
}